:root{
    --color-main:#ff5455;
}
/*element {*/
    /*--main-bg-color: brown;*/
/*}*/

* {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    outline: none;
    text-decoration:none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /*z-index: 100;*/
}

html, body {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    background-color: white;
}

ul,ol,li {
    list-style:none;
}
input,textarea,select {
    resize:none; outline:none; vertical-align:middle;
}
/*框架*/
.content {
    background: #fff;
}
.tabs {
    padding: 0;
    top:0px;
    height: 100%;
    /*z-index:101;*/
}
.tab-link.button {
    color: #7f7f7f;
    font-size: 14px;
}
.tab-link.button.active {
    color: #ff5455;
    border-bottom-color: #ff5455;
    font-size: 16px;
}
.list-block {
    margin: 0;
}
.fixed-tab {
    /*z-index: 101;*/
}

/*自定义*/
.dm_header {
    background: #ff5455;
    color: white;
    /*height: 44px;*/
    /*z-index: 1000;*/
}
.dm_header .title {
    color: white;
    font-size: 18px;
}
.dm_header .back {
    color: white;
    font-size: 16px;
}
.dm_divider {
    background-color: #eee;
    height: 1px;
}

.dm_search_button {
    width: 100%;
    padding: 12px 16px;
    background: white;
    height: 57px;
    position: relative;
    z-index: 1;
}
.dm_search_button div {
    height: 33px;
    line-height: 30px;
    border-radius: 20px;
    border: 1.5px solid #ccc;
    text-align: center;
}
.dm_search_button div:active {
    background: #ccc;
}
.dm_search_button div span {
    font-size: 14px;
    color:#bbb;
}

/*列表相关*/
.dm_list_item {
    padding: 12px 16px;
    position: relative;
    /*background: red;*/
}
.dm_list_item:active {
    background-color: #eee;
}
.dm_list_item.dm_shrink {
    min-height: 160px;
}
.dm_list_item_container_left.dm_shrink {
    padding-right: 120px;
}
.dm_list_item_text_title {
    font-size: 18px;
    color: #333;
    /*最多显示两行,多余的展示...*/
    display:-webkit-box;
    overflow: hidden;
    margin: 10px 0px;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.dm_list_item_text_content{
    font-size: 14px;
    color: #888;
    /*最多显示两行,多余的展示...*/
    display:-webkit-box;
    overflow: hidden;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.dm_list_item_text_date{
    font-size: 14px;
    color: #ff5455;
    /*最多显示两行,多余的展示...*/
    display:-webkit-box;
    overflow: hidden;
    margin: 10px 0px;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.dm_list_item_image {
    width: 96px;
    height: 120px;
    top: 26px;
    position: absolute;
    right: 16px;
}

.dm_list_item.dm_shrink[type="2"] {
    min-height: 110px;
}
.dm_list_item_container_left.dm_shrink[type="2"] {
    padding-right: 90px;
}
.dm_list_item_text_title[type="2"] {
    font-size: 14px;
    margin: 6px 0;
}
.dm_list_item_text_content[type="2"] {
    font-size: 12px;
    margin: 6px 0;
}
.dm_list_item_text_date[type="2"] {
    font-size: 12px;
    margin: 6px 0;
}
.dm_list_item_image[type="2"] {
    width: 72px;
    height: 90px;
    top:16px;
}

.dm_list_item.dm_shrink[type="3"] {
    min-height: 110px;
}
.dm_list_item_container_left.dm_shrink[type="3"] {
    padding-right: 90px;
}
.dm_list_item_text_title[type="3"] {
    -webkit-line-clamp: 1;
}
.dm_list_item_text_content[type="3"] {
    -webkit-line-clamp: 1;
}
.dm_list_item_image[type="3"] {
    width: 72px;
    height: 90px;
    top:20px;
}

.dm_list_item.dm_shrink[type="4"] {
    min-height: 100px;
}
.dm_list_item_container_left.dm_shrink[type="4"] {
    padding-right: 80px;
}
.dm_list_item_text_content[type="4"] {
    height: 0px;
}
.dm_list_item_text_date[type="4"] {
    color: #bbb;
}
.dm_list_item_image[type="4"] {
    width: 64px;
    height: 80px;
    top:12px;
}

#dm_main_content_0 {
    /*position: relative;*/
    /*margin-top: 100px;*/
    margin-top: -44px;
    /*z-index: 1;*/
}

#dm_main_content_0_list {
    margin: 0;
}
#dm_main_content_1_image {
    width: 100%;
    display: block;
}

#dm_main_content_1_grid {
    margin: 0;
}
#dm_main_content_1_grid .row .col-33 {
    margin: 0px;
    padding: 28px 0px;
    position: relative;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}
#dm_main_content_1_grid .row .col-33:active {
    background: #ccc;
}
#dm_main_content_1_grid .row .col-33 img {
    width: 30%;
}
#dm_main_content_1_grid .row .col-33 div {
    width: 100%;
    font-size: 14px;
    color: #bbb;
    position: absolute;
    bottom: 24px;
}

.dm_main_content_2_category {
    /*width: 100%;*/
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    min-height: 48px;
}

.dm_main_content_2_category span {
    width: 100%;
    position: absolute;
    background: rgba(0,0,0,0.5);
    top: 50%;
    left: 0;
    margin-top: -24px;
    line-height: 48px;
    color: white;
    font-size: 18px;
    pointer-events: none;
}

.dm_search_container {
    width: 85%;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    background: white;
    position: relative;
    top: 8px;
    left: 3%;
}
.dm_search_container img {
    width: 22px;
    height: 22px;
    margin: 4px 8px;
    display: inline;
}
#dm_search_input {
    width: calc(100% - 48px);
    width: -webkit-calc(100% - 48px);
    height: 24px;
    display: inline;
    font-size: 14px;
    position: absolute;
    top: -3px;
    left: 32px;
    color: #888;
}
#dm_search_cancel {
    width: 10%;
    height: 100%;
    line-height: 48px;
    font-size: 16px;
    color: white;
    text-align: center;
    position: absolute;
    top:0px;
    right: 2%;
}

#dm_search_grid .col-33 {
    text-align: center;
    margin-top: 32px;
}
.dm_search_grid_item {
    width: 80%;
    height: 36px;
    line-height: 34px;
    border: 1px solid #eee;
    border-radius: 18px;
    font-size: 16px;
    color: #888;
    position: relative;
    left:10%
}
.dm_search_grid_item.selected {
    background: #ff5455;
    color: white;
}

#dm_search_result {
    width: 100%;
    position: absolute;
    top: 0%;
}

#dm_search_result_empty {
    width: 100%;
    color: #888;
    position: fixed;
    top:48%;
    font-size: 16px;
    text-align: center;
}

/*详情页*/
#dm_detail_top_img {
    width:100%;
    display: block;
}
#dm_detail_container {
    padding: 12px;
}
#dm_detail_content_title {
    color:#333;
    font-size: 18px;
}
#dm_detail_content_source {
    color:#bbb;
    font-size: 14px;
    margin: 8px 0;
}
#dm_detail_content_detail {
    color:#888;
    font-size: 14px;
    margin: 8px 0;
}
#dm_detail_content_action {
    color:#888;
    font-size: 14px;
    margin: 16px 0;
}

#dm_detail_content_recommend {
    background: #eee;
    padding: 12px 0 0 0;
}

#dm_detail_content_recommend_header {
    position: relative;
    background: white;
    padding: 12px 12px 4px 12px;
}
#dm_detail_content_recommend_header .dm_image_suanzhu {
    width: 9px;
    height: 6px;
    background: #ff5455;
    border-radius: 3px;
    margin: 6px 4px 0 0 ;
    float: left;
}
#dm_detail_content_recommend_header .dm_list_header {
    color:#333;
    font-size: 14px;
    margin-left: 8px;
}

#dm_detail_content_recommend_list {
    background: white;
    padding: 0px 12px;
}

.dm_item_action {
    width: calc(100% - 0px);
    width: -webkit-calc(100% - 0px);
    border: 1px solid #eee;
    margin: 8px 0;
}
.dm_item_action_container{
    padding: 12px;
}
.dm_item_action_name{
    font-size: 16px;
    color: #333;
}
.dm_item_action_info{
    font-size: 12px;
    margin: 4px 0;
    color: #bbb;
}
.dm_item_action_button{
    font-size: 14px;
    padding: 1px 22px;
    color: #ff5455;
    border: 1px solid #ff5455;
    border-radius: 12px;
    margin: 0 6px;
    float: right;
}
.dm_item_action_button:active{
    color: #ff5455;
    opacity: 0.6;
}
